package com.nami.store.biz.privatehismsgs.convert;

import com.nami.store.api.response.message.MessageDTO;
import com.nami.store.domain.PrivateHisMsgsDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface PrivateMsgConvert {

    PrivateMsgConvert INSTANCE = Mappers.getMapper(PrivateMsgConvert.class);


    MessageDTO convert(PrivateHisMsgsDO entity);

    List<MessageDTO> convertList(List<PrivateHisMsgsDO> list);

}
